rofiles-fuse: Fix truncate call to not use O_CREAT
authorColin Walters <walters@verbum.org>
Wed, 17 Feb 2016 16:01:21 +0000 (11:01 -0500)
committerColin Walters <walters@verbum.org>
Wed, 17 Feb 2016 16:06:53 +0000 (11:06 -0500)
commitd3eee15f8421326450b05c2dcac1aea121a92073
tree16cf447e836f1538d2cd311db1d6492be60d8d39
parent2c2fd658ee141979c0310baf6d0b2807503323d5
rofiles-fuse: Fix truncate call to not use O_CREAT

I was getting a compilation error with the GCC hardening flags which
look for a missing mode with `O_CREAT`.  The right fix here is to drop
`O_CREAT`, as truncate() should throw `ENOENT` if the file doesn't
exist.
src/rofiles-fuse/main.c